//
//  GGededfrvfViewController.m
//  tantan
//
//  Created by SQHH on 2017/12/20.
//  Copyright © 2017年 SQHH. All rights reserved.
//

#import "GGededfrvfViewController.h"

@interface GGededfrvfViewController () <
UITableViewDataSource,
UITableViewDelegate
>

/// adsfasdf数据源
@property (nonatomic, strong) NSMutableArray *data;

@property (nonatomic, strong) UITableView *adsfasdf;

@property (nonatomic, strong) UIView *fdasfqewr;

@property (nonatomic, strong) UIView *ewdfqwe;

@property (nonatomic, strong) UIView *fqwefqwe;

@end

@implementation GGededfrvfViewController

#pragma mark - # Delegate
//MARK: UITableViewDataSource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
	return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
	return self.data.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
	return nil;
}

//MARK: UITableViewDelegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
	
}

#pragma mark - # Life Cycle
- (void)loadView {
	[super loadView];
	[self.view addSubview:self.adsfasdf];
	[self.view addSubview:self.fdasfqewr];
	[self.fdasfqewr addSubview:self.ewdfqwe];
	[self.adsfasdf addSubview:self.fqwefqwe];
}

- (void)viewDidLoad {
	[super viewDidLoad];
}

#pragma mark - # Getter
- (NSMutableArray *)data {
	if (!_data) {
		_data = [[NSMutableArray alloc] init];
	}
	return _data;
}

- (UITableView *)adsfasdf {
	if (!_adsfasdf) {
		_adsfasdf = [[UITableView alloc] init];
		[_adsfasdf setDelegate:self];
		[_adsfasdf setRowHeight:54];
		[_adsfasdf setSectionHeaderHeight:54];
		[_adsfasdf setSectionFooterHeight:45];
		[_adsfasdf setDataSource:self];
	}
	return _adsfasdf;
}

- (UIView *)fdasfqewr {
	if (!_fdasfqewr) {
		_fdasfqewr = [[UIView alloc] init];
		[_fdasfqewr setFrame:CGRectMake(54, 54, 545, 45)];
	}
	return _fdasfqewr;
}

- (UIView *)ewdfqwe {
	if (!_ewdfqwe) {
		_ewdfqwe = [[UIView alloc] init];
		[_ewdfqwe setFrame:CGRectMake(54, 0, 44, 56)];
	}
	return _ewdfqwe;
}

- (UIView *)fqwefqwe {
	if (!_fqwefqwe) {
		_fqwefqwe = [[UIView alloc] init];
		[_fqwefqwe setBackgroundColor:[UIColor whiteColor]];
	}
	return _fqwefqwe;
}

@end
